package artid.com.arttogoa.barcode;

public class BarCode {
	
	public byte [] result;
	public byte [] cpright;
	public int resultLength;
	//��������,1:QR;2:DM;3:1D
	public int type;
	//barcode�汾
	public int version;
	public boolean success;
	public int index;
	public int total;
	public int groupId;
	public int errorcollectionLevel;
	public int mod;
	
	//CutImg
	//NewImgbuf
	public byte [] CutImageData;
	//NewImgWidth
	public int CutImageWidth;
	//NewImgHeight
	public int CutImageHeight;
	//NewImgType
	public byte CutImageType;
	//NewImgSize
	public int CutImageSize;

	static{
//		System.loadLibrary("barcode");
		System.loadLibrary("xmBarcode");
	}

	public native int getBarCodeResult(byte [] img,int imgWidth,int imgHeight,byte imgType,int imgSize,int iMod);
	public native int CutImage(byte [] pImageData, int imageWidth, int imageHeight, byte imageType, int imageSize, int leftUpX, int leftUpY, int rightDownX, int rightDownY);
	
}
